# you must pip install dingtalk_stream before!
from dingtalk.ddbot import *

robotCode = 'ding*********'  # 输入你自己的code
robotSecret = '5Ie_qScP3oQqN*************************'  # 输入你自己的secret
bot = Core(robotCode, robotSecret)

@bot.msg_register([FILE, TEXT, AUDIO, PICTURE, VIDEO], is_private=True)
def reply_private(msg: Message):
    msg.user.send_msg('Hello world!1')
    bot.send_msg('Hello world!2')
    return "Hello world!3"

bot.run()
